<div class="children index">
	<h2><?php __('Children Information');?></h2>
	<?php echo $this->Html->link(__('Add New', true), array('controller' => 'children','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Name<?php //echo $this->Paginator->sort('Name');?></th>
			<th>Gender<?php //echo $this->Paginator->sort('Gender');?></th>
			<th>Date of Birth<?php //echo $this->Paginator->sort('Date of Birth');?></th>
			<th>Marital Status<?php //echo $this->Paginator->sort('Marital Status');?></th>
			<th>Disable<?php //echo $this->Paginator->sort('Disable');?></th>
			<!-- <th><?php //echo $this->Paginator->sort('user_id');?></th>
			<th><?php //echo $this->Paginator->sort('created');?></th>
			<th><?php //echo $this->Paginator->sort('modified');?></th> -->
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($children as $child):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; //echo $child['Child']['id']; ?>&nbsp;</td>
		<td><?php echo $child['Child']['name']; ?>&nbsp;</td>
		<td><?php echo $child['Child']['gender']; ?>&nbsp;</td>
		<td><?php echo date('d-M-Y', strtotime($child['Child']['dateofbirth'])); ?>&nbsp;</td>
		<td><?php echo $child['Child']['maritalstatus']; ?>&nbsp;</td>
		<td><?php echo $child['Child']['disable']; ?>&nbsp;</td>
		<!-- <td>
			<?php //echo $this->Html->link($child['User']['id'], array('controller' => 'users', 'action' => 'view', $child['User']['id'])); ?>
		</td>
		<td><?php //echo $child['Child']['created']; ?>&nbsp;</td>
		<td><?php //echo $child['Child']['modified']; ?>&nbsp;</td> -->
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $child['Child']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'children','action' => 'edit', $child['Child']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'children','action' => 'delete', $child['Child']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $child['Child']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	<!-- <div class="paging">
		<?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php //echo $this->Paginator->numbers();?>
 |
		<?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div> -->
</div>
<div class="actions">
	<?php echo $this->element('leftmenu'); ?>
</div>